package com.lechuang.goods.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lechuang.goods.entity.GoodsRegion;
import com.lechuang.goods.service.GoodsRegionService;
import com.lechuang.goods.mapper.GoodsRegionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author apple
* @description 针对表【goods_region(商品区域表)】的数据库操作Service实现
* @createDate 2024-06-24 17:24:42
*/
@Service
public class GoodsRegionServiceImpl extends ServiceImpl<GoodsRegionMapper, GoodsRegion>
    implements GoodsRegionService{

    @Override
    public List<GoodsRegion> list(Integer regionType) {
        return this.lambdaQuery()
                .eq(GoodsRegion::getRegionType, regionType)
                .list();
    }
}




